﻿<%@ Page Language="C#" MasterPageFile="~/admin/AdminTemplate.master" AutoEventWireup="true" CodeFile="ManageNews.aspx.cs" Inherits="admin_ManageNews" Title="Admin" ValidateRequest="false" UICulture="vi-VN" %>

<%@ Register Assembly="DevExpress.Web.ASPxPivotGrid.v7.2, Version=7.2.2.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
    Namespace="DevExpress.Web.ASPxPivotGrid" TagPrefix="dxwpg" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v7.2, Version=7.2.2.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v7.2, Version=7.2.2.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
    <%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table width="100%" height="100%">
        
        <tr>
            <td align="left" valign="top" >
             <asp:Panel ID="panelTable" runat="server" Height="314" Width="90%" GroupingText="Bảng thống kê" ForeColor="White">
                 &nbsp;&nbsp;<dxwgv:ASPxGridView ID="gridviewNews" runat="server" AutoGenerateColumns="False" KeyFieldName="NewsID" 
                     Width="452px" EnableRowsCache="False" EnableViewState="False" >
                     <Columns>
                         <dxwgv:GridViewDataTextColumn Caption="ID" FieldName="NewsID" VisibleIndex="0">
                         </dxwgv:GridViewDataTextColumn>
                         <dxwgv:GridViewDataDateColumn Caption="Thời gian" FieldName="NewsTime" VisibleIndex="1">
                             <PropertiesDateEdit DisplayFormatString="">
                                 <ValidationSettings>
                                     <RequiredField ErrorText="* Bạn phải chọn ng&#224;y" IsRequired="True" />
                                 </ValidationSettings>
                             </PropertiesDateEdit>
                         </dxwgv:GridViewDataDateColumn>
                         <dxwgv:GridViewDataTextColumn Caption="Ti&#234;u đề" FieldName="NewsTitle" VisibleIndex="2">
                             <PropertiesTextEdit DisplayFormatString="c2" MaxLength="50" Size="50">
                                 <ValidationSettings>
                                     <RequiredField ErrorText="* bạn phải nhập ti&#234;u đề" IsRequired="True" />
                                 </ValidationSettings>
                             </PropertiesTextEdit>
                             <Settings AutoFilterCondition="Contains" />
                         </dxwgv:GridViewDataTextColumn>
                         <dxwgv:GridViewDataHyperLinkColumn FieldName="NewsID" VisibleIndex="3" Caption="#">
                             <PropertiesHyperLinkEdit DisplayFormatString="Xoa {0}" NavigateUrlFormatString="DeleteNews.aspx?id={0}"
                                 Target="_parent" Text="X&#243;a" TextFormatString="X&#243;a">
                             </PropertiesHyperLinkEdit>
                         </dxwgv:GridViewDataHyperLinkColumn>
                         <dxwgv:GridViewDataHyperLinkColumn FieldName="NewsID" VisibleIndex="4" Caption="#">
                             <PropertiesHyperLinkEdit NavigateUrlFormatString="EditNews.aspx?id={0}" Text="Sửa"
                                 TextFormatString="Sửa">
                             </PropertiesHyperLinkEdit>
                         </dxwgv:GridViewDataHyperLinkColumn>
                         <dxwgv:GridViewCommandColumn VisibleIndex="5">
                             <ClearFilterButton Visible="True">
                             </ClearFilterButton>
                         </dxwgv:GridViewCommandColumn>
                     </Columns>
                     <Settings ShowFilterRow="True" ShowStatusBar="Visible" />
                     <SettingsPager PageSize="5">
                     </SettingsPager>
                     <SettingsLoadingPanel Text="Nạp" />
                     
                 </dxwgv:ASPxGridView>
             </asp:Panel>
            </td>
            
        </tr>
        
    </table>
</asp:Content>

